<h2>FOP tables</h2>

<h3>Tables List</h3>    
<?php
if(empty($this->listTables['tables'])) echo 'No table defined so far';
else {
  foreach($this->listTables['tables'] as $nm => $table) {
	echo '<h3><a href="'.$this->baseURL().'/fop/'.$table['name'].'/">'.$table['name'].'</a></h3>';
	echo '<p>'.$table['description'].'</p>';	
  }
}
?>

<h3>Create new FOP table</h3>
<form action="<?php echo $this->baseURL() ?>/fop/index/createnewtable/" method="post">
Table Name: <input type="text" name="tableName" /><br />
Table Definition: <textarea name="tableDefinition" cols="40" rows="4"></textarea><br />
<button type="submit">Create new table</button>
</form>

